package com.appspot.etao.service;

import java.util.List;

import javax.jdo.PersistenceManager;

import com.appspot.etao.jdo.PMF;
import com.appspot.etao.model.ShopCatModel;

public class ShopCatService extends BaseService {

	
	public List<ShopCatModel> getShopCatList() {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		
		String shopCatQuery = "select from " + ShopCatModel.class.getName();
		List<ShopCatModel> shopCatList = (List<ShopCatModel>)pm.newQuery(shopCatQuery).execute();
		
		pm.close();
		
		return shopCatList;
	}
}
